# 将数字转换为字符串
number = 123
str_num = str(number)
print(type(str_num),str_num)
# 将字符串转换为数字
val = "123"
temp = int(val)
print(type(temp),temp)

# 字符串转浮点数
val = "3.14"
float_val = float(val)
print(type(float_val),float_val)
int_val = int(float_val)
# 浮点数转换为整数 转换为浮点数
print(type(int_val),int_val)


